<?php
function preview($text, $numb = 50) {
    $length = strlen($text);
    if ($length > $numb) {
        $text = substr($text, 0, $numb);
        $text = substr($text, 0, strrpos($text," "));
        return $text;
    }
    else return $false;
}

function restof($text, $numb = 50) {
    $length = strlen($text);
    if ($length > $numb) {
        $text = substr($text, $numb, $length);
        $text = substr($text, 0, strrpos($text," "));
        return $text;
    }
    else return false;
}
?>
